<%@page import="com.example.shop.pojo.Student"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	int[] arr = {10,20,30};

	List<String> list = new ArrayList<>();
	list.add("刘备");
	list.add("关羽");
	list.add("张飞");
	
	Map<String,String> map = new HashMap<>();
	map.put("1001","张三");
	map.put("1002","李四");
	map.put("1003","王五");
	
	Student stu = new Student(3,"乔布斯",20);
	
	pageContext.setAttribute("arr",arr);
	pageContext.setAttribute("map",map);
	pageContext.setAttribute("list",list);
	pageContext.setAttribute("stu",stu);
%>

${arr[2]}<br />
${list[1]}<br />
${map["1001"]}<br />
${stu.name}<br />


</body>
</html>